package com.maistars.spider.security.service;

import com.maistars.spider.repository.security.model.UserPO;
import com.maistars.spider.repository.security.model.UserRolePO;

import java.util.List;

/**
 * @author dhr
 * @date 2022/7/10 10:17
 */
public interface UserService {

    public UserPO getUserById(Integer id);
    public UserPO getUserByUsername(String username);
    public UserPO getUserByPhone(String phone);
    public List<UserPO> getAllUser();
    public UserPO getUserDetailByUsername(String userName);
    public UserPO getUserDetail(Integer userId);
    public void addUser(UserPO userPO);
    public void updateUser(UserPO userPO);

    public void addUserRole(Integer userId,Integer roleId);

}
